import pytest
from common import log_set,mail_send
import os

if __name__ == '__main__':
    log_set()
    pytest.main(['-s','testadd.py',"--alluredir=报告数据","--clean-alluredir"])
    os.system("allure generate 报告数据 -o 报告 --clean")
    mail_send(['log.txt','报告/index.html'])